const webpack = require('webpack');
const common = require('./webpack.common');
const { merge } = require('webpack-merge')

module.exports = merge(common, {
  mode: 'development',
  output: {

  },
  // 开发服务器
  devServer: {
    // contentBase: ['../public', '../src/assets'], // 静态文件路径
    port: 8080, //开发端口
    hot: true, // 热更新
    // open: true
  },
  // devtool: "cheap-module-eval-source-map", // source-map
  plugins: [
    new webpack.HotModuleReplacementPlugin(), // 开启HMR
  ]
})
